Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 5 - Menu Manager Reference / Menu Manager Functions
Manipulating and Accessing Menu Item Characteristics /


GetMenuItemTextEncoding

NEW WITH THE APPEARANCE MANAGER

Gets the text encoding used for a menu item's text.

pascal OSErr GetMenuItemTextEncoding (
                     MenuHandle inMenu,
                     SInt16 inItem,
                     TextEncoding* outScriptID);
inMenu
The handle to the menu structure of the menu item whose text encoding you wish to get.
inItem
An integer representing the item number of the menu item whose text encoding you wish to get.
outScriptID
On output, a pointer to the script code of the text encoding used in the menu item's text.
function result
A result code; see "Result Codes".
DISCUSSION
If a menu item has a command code of 0x1C when GetMenuItemTextEncoding is called, GetMenuItemTextEncoding gets the value in the icon field of the menu item's menu resource.

SEE ALSO
"Appearance Manager Gestalt Selector Constants".

SetMenuItemTextEncoding.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998